#pragma once
#include<string>
using namespace std;


class Controller;
class Viewer;
class Model
{
public:
	Model(void);
	virtual ~Model(void);
	void Register(Viewer *pViewer);
	void UnRegister(Viewer *pviewer);
	void Notify();
	void SetData(string dataStr);
	string GetData();
	void SetController(Controller *pController);
private:
	string m_Data;
	Controller *m_pController;
};

